import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '修改'
        }),
        format: '/{0}/update'
    },
    abandon: {
        url: '/:id/abandon',
        title: formatMessage({
            id: 'routes.abandon',
            defaultMessage: '作废'
        }),
        format: '/{0}/abandon'
    },
    approve: {
        url: '/:id/approve',
        title: formatMessage({
            id: 'routes.approve',
            defaultMessage: '审核'
        }),
        format: '/{0}/approve'
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    export: {
        url: '/export',
        title: formatMessage({
            id: 'routes.export',
            defaultMessage: '导出'
        }),
        format: '/export'
    },
    historyQuery: {
        url: '/historyQuery',
        title: formatMessage({
            id: 'routes.historyQuery',
            defaultMessage: '备件需求计划管理历史查询'
        })
    },
    historyDetail: {
        url: '/:id/historyDetail',
        title: formatMessage({
            id: 'routes.historyDetail',
            defaultMessage: '备件需求计划管理历史详情'
        }),
        format: '/{0}/historyDetail'
    },
});
export default routes;
